package com.oa.service;

import java.util.List;
import java.util.Map;

import com.oa.bean.Bored;
import com.oa.bean.Privilege;
import com.oa.bean.Reply;
import com.oa.bean.Role;
import com.oa.bean.Send;

public interface PostService {

	//显示贴子信息
	public List<Send> showPost();
	//版块下拉框显示
	public List<Send> showBored();
	//新增帖子
	public int addPost(Send s);
	//根据版块id查找姓名
	public Bored queryByIdSend(int sid);
	//按条件查询
	public List<Send> querySend(Map<String,Object> map);
	//删除帖子id
	public int deleteSend(int sid);
	//修改编辑帖子内容
	public int modifyPost(Send s);
	//查看帖子详细
	public List<Send> lookPost(int sid);
	// 根据id查找主贴信息 
	public Send lookMainPost(int sid);
	//新增回帖
	public int addReplyPost(Reply r);
	// 根据回帖id查询name 
	public Reply queryByIdReply(int rid);
	//查找显示待审批的帖子
	public List<Send> queryWaitPost(Map<String,Object> map);
	//修改批准状态
	public int modifyApprove(int s);
	//查询显示我发布的帖子
	public List<Send> showQuerySend(Map<String,Object> map);
	//显示论坛管理模块
	public List<Bored> showBoredPost();
	//删除版块
	public int deleteRored(int bid);
	//根据版块ID查询版主 
	public Send findByIdSend(int bid);
	//新增版块
	public int addBored(Bored b);
	//添加多条
	public int addBoreds(List<Bored> bored);
	//显示
	public List<Bored> queryBored();
	
}
